package com.alan.factory.factory_method;

/**
 * Created by Alan on 2018/8/22.
 */
public class JIOConnectionFactory extends ConnectionFactory {
    @Override
    public AbstractMyConnection getConnection(String type) {
        if("jio".equals(type)){
            return new JIOConnection();
        }
        return null;
    }
}
